const { postRequest, getRequest, putRequest } = require('./request')

// 售后申请
const applyAftersale = (params) => postRequest('/orderB/applyAftersale', params)
// 确认揽收
const comfireReceived = (params) => postRequest('/orderB/comfireReceived', params)
// 订单确认提货
const confirmDelivery = (params) => postRequest('/orderB/confirmDelivery', params)
// 确认退回站点
const confirmReturn = (params) => putRequest('/orderB/confirmReturn', params)
// 确认回仓
const confirmWarehouse = (params) => putRequest('/orderB/confirmWarehouse', params)
// 订单交货
const delivery = (params) => postRequest('/orderB/delivery', params)
// 揽收异常上传
const exceptReceived = (params) => postRequest('/orderB/exceptReceived', params)
// 售后申请查询
const getAfterSaleApply = (params) => getRequest('/orderB/getAfterSaleApply', params)
// 订单详情
const getOrderBInfo = (params) => getRequest('/orderB/getOrderBInfo', params)
// 揽收异常原因列表
const getReceivedExtList = (params) => postRequest('/orderB/getReceivedExtList', params)
// 售后订单分页
const queryAftersalePage = (params) => postRequest('/orderB/queryAftersalePage', params)
// 全部订单
const queryOrderBPage = (params) => postRequest('/orderB/queryOrderBPage', params)
// 待揽收
const queryWaitReceived = (params) => getRequest('/orderB/queryWaitReceived', params)
// 待提货
const queryWaitDelivery = (params) => getRequest('/orderB/queryWaitDelivery', params)
// 账单分页查询
const queryShopAccountPage = (params) => postRequest('/shop/queryShopAccountPage', params)
// 售后订单退款金额计算
const getRefundAmount = (params) => postRequest('/orderB/getRefundAmount', params)
// 售后详情
const getAfterSaleBInfo = (params) => getRequest('/orderB/getAfterSaleBInfo', params)

module.exports = {
  applyAftersale,
  comfireReceived,
  confirmDelivery,
  confirmReturn,
  confirmWarehouse,
  delivery,
  exceptReceived,
  getAfterSaleApply,
  getOrderBInfo,
  getReceivedExtList,
  queryAftersalePage,
  queryOrderBPage,
  queryWaitReceived,
  queryWaitDelivery,
  queryShopAccountPage,
  getRefundAmount,
  getAfterSaleBInfo
}